export default function(time:any,str='-'){
	let times=new Date(time)
	let date=times.getDate()
	let year=times.getFullYear()
	let month=times.getMonth()+1
	let hours=times.getHours()
	let min=times.getMinutes()
	let seconds=times.getSeconds()
	return {
		ymd_chinese:year+'年'+month+'月'+date+"日",
		md_chinese:month+'月'+date+"日",
		ymdhm_chinese:year+'年'+month+'月'+date+"日"+hours+"时"+min+"分",
		ymd:year+str+(month>9?month:'0'+month)+str+(date>9?date:'0'+date),
		md:(month>9?month:'0'+month)+str+(date>9?date:'0'+date),
		hms:(hours>9?hours:'0'+hours)+":"+(min>9?min:'0'+min)+":"+(seconds>9?seconds:'0'+seconds),
		ymdhm:year+str+(month>9?month:'0'+month)+str+(date>9?date:'0'+date)+" "+(hours>9?hours:'0'+hours)+":"+(min>9?min:'0'+min),
		ymdhms:year+str+(month>9?month:'0'+month)+str+(date>9?date:'0'+date)+" "+(hours>9?hours:'0'+hours)+":"+(min>9?min:'0'+min)+":"+(seconds>9?seconds:'0'+seconds)
		}
	
}